package cn.yitun.chat.yitunservercommonlib.crud.yitun;

import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
public class BaseDto<T>  {

    //当前页
    private int currentPageNo;
    //页面大小
    private int pageSize;
    /**
     * 当前用户id
     */
    protected Long currentUserId;
    //编号
    protected Long id;

    //主键数组
    protected List<Long> ids;

    //创建时间,下单日期
    protected long createTime;
    //创建者
    protected Long createBy;
    //更新时间
    protected long updateTime;
    //更新者
    protected Long updateBy;
    //数据范围
    protected String dataScope;
    //关键词
    protected String search;

    protected Long begin;

    protected Long end;

    /**
     * 查询方向 before往回查 after往下查
     */
    protected String direction;
    /**
     * 查询个数 与direction匹配
     */
    protected Integer searchNum;

    //状态,1:正常,0禁用,(用户类:2冻结)
    protected String status;
    //特殊条件
    protected String otherConditions;

    public BaseDto() {}

    public BaseDto(Long id) {
        this.id = id;
    }

    public BaseDto(List<Long> ids) {
        this.ids = ids;
    }

}
